WooCommerce\Square\Framework\PaymentGateway\PaymentTokens\Payment_Gateway_Payment_Tokens_Handler B

Total Complexity 95
Dependencies 9
Dependents 1
Total lines 855
Lines of code 318
Logical lines of code 194
Comment lines 360
Methods 26
Properties 3

Methods 26

Method Rating Maintainability Complexity Lines of code
get_tokens()
B
39 20 57
create_token()
A
44 14 43
register_payment_tokens_migration_scheduler()
A
47 7 34
remove_token()
S
56 7 17
set_default_token()
S
54 6 20
merge_token_data()
S
57 6 16
get_token()
S
59 3 15
get_user_meta_name()
S
69 3 6
schedule_token_migration_job()
S
66 3 8
update_token()
S
63 3 10
user_has_token()
S
65 3 9
get_order_note()
S
60 2 14
should_tokenize()
S
77 2 3
format_for_db()
S
68 2 7
update_tokens()
S
66 2 8
get_transient_key()
S
66 2 7
add_token()
S
60 1 13
get_environment_id()
S
82 1 3
__construct()
S
67 1 7
get_token_editor()
S
80 1 3
clear_transient()
S
80 1 3
get_merge_attributes()
S
78 1 3
tokenization_forced()
S
77 1 3
should_delete_token()
S
82 1 3
build_token()
S
79 1 3
get_gateway()
S
82 1 3